<%@page import="futbolfacil.modelo.Cancha"%>
<%@page import="futbolfacil.modelo.Horario"%>
<%@page import="java.util.Collection"%>
<%@page import="java.util.ArrayList"%>
<%@page import="futbolfacil.modelo.Local"%>

<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="css/rexstyle.css">
<title>Alquilar Cancha</title>
</head><html>
<body>
<h1>Alquilar Cancha</h1>
<div id="grid">
<form method="POST" action="AlquilarCanchaServlet">

	<label>Cancha:<br></label><input type="text" id="txtCancha" name="txtCancha"><br>
	
	                                    <label>Hora Inicio:</label>
	                                    <select name="cboHoraInicio" style="width: 153px; ">	
		                                    <%		
 		                                    ArrayList<String> horasI = (ArrayList<String>) request.getAttribute("ListadoHoras");
		                                    for(String hora : horasI){ 
			                                    out.println("<option value='"+ hora +"' > "+ hora +"</option>");
		                                    }
		                                    %>
	                                    </select><br />	
	                                    <label>Hora Fin:</label>
	                                    <select name="cboHoraFin" style="width: 156px; ">	
		                                    <%		
 		                                    ArrayList<String> horasF = (ArrayList<String>) request.getAttribute("ListadoHoras");
		                                    for(String hora : horasF){ 
			                                    out.println("<option value='"+ hora +"' > "+ hora +"</option>");
		                                    }
		                                    %>
	                                 </select><br />
	       <label>&nbsp;</label><input type="submit" name="submit1" value="Registrar">                          	
</form>	
</div>
</body>
</html>
